package com.zhifei.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhifei.common.utils.Result;
import com.zhifei.system.domain.EmployeeEntity;
import com.zhifei.system.domain.EmployeeMonthEntity;
import com.zhifei.system.domain.dto.DataSourceDTO;
import com.zhifei.system.domain.dto.UpdateEmployeeMonthDTO;
import com.zhifei.system.domain.vo.EmployeeMonthExcelVo;
import com.zhifei.system.domain.vo.EmployeeMonthSummaryVo;
import com.zhifei.system.util.PageUtils;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface EmployeeMonthService extends IService<EmployeeMonthEntity> {

    PageUtils pageMonth(Map<String, Object> params);

    List<EmployeeMonthExcelVo> listMonth(Map<String, Object> params);

    Result importMonth(MultipartFile multipartFile);

    EmployeeMonthSummaryVo getMonthSummary(Map<String, Object> params);

    Result updateMonth(UpdateEmployeeMonthDTO dto);

    void caclPriceByTravelExpenses(String jobNum,String employeeMonth,BigDecimal travelExpenses);

    EmployeeMonthEntity getByJobNumAndMonth(String jobNum,String employeeMonth);

    void caclPriceBySettlementAmount(EmployeeMonthEntity employeeMonthEntity,BigDecimal settlementAmount);

}
